package com.jdd.modules.sdk.utils;

import java.nio.charset.StandardCharsets;

/**
 * @version 1.0
 * @Description:
 * @author： jdd尚岳
 * @Date: 2022-04-14 17:03
 */
public class DaoZhaUtils {
    public static byte[] setDaoZhaUploadLocation(){
            StringBuffer stringBuffer = new StringBuffer();
                    stringBuffer.append("AB")//帧头
                        .append("55")//帧头2
                        .append("1")//地址
                        .append("119")//命令
                        .append("1")//操作
                        .append("FF")//数据
                        .append("0000")//保留
                        .append("AF");//帧尾buzhiyu
  //      byte[] bytess = {-85,85,1,119,0,-1,0,0,0,0,-81};
        byte[] bytes = FeiLiDeLedUtils.hexToByteArray("AB55017700FF00000000AF");
        return  bytes ;
    }



    public static void main(String[] args) {
        byte[] bytess = {-85,85,1,119,0,-1,0,0,0,0,-81};
        String s = FeiLiDeLedUtils.bytes2HexString(bytess);
        System.out.println(s);
    }

}
